package com.kevin.struts2.view.action;

import com.kevin.struts2.dto.User;

public class DisplayAction extends BaseAction {

	private User user;

	private String userName;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public DisplayAction() {
		this.user = new User(20);
	}

	public String execute() {

		this.userName = "kevin";
		return this.SUCCESS;
	}
}
